var fs = require('fs')

fs.readFile('./dist/index.html', (readError, data) => {
  if (readError) {
    return console.error(readError);
  }
  let content = data.toString();
  content = content.replace('<link rel=stylesheet href=/assets/bundle.css type=text/css>', '');
  content = content.replace('<script type=text/javascript src=/assets/app.js></script><script type=text/javascript src=/assets/vendor.js></script>', '');
  fs.writeFile('./dist/index.html', content, (writeError) => {
    if (writeError) {
      return console.error(writeError);
    }
  });
});
